<ion-view view-title="采购明细">
  <ion-content class="crm-content">
    <ul class="list">
      <li class="item">
        酒店名称
        <span class="item-note">
          {{purchaseDetail.hotelName}}
        </span>
      </li>
      <li class="item">
        下单时间
        <span class="item-note">
          {{purchaseDetail.s_atime | date:'yyyy-MM-dd hh:mm'}}
        </span>
      </li>
      <li class="item">
        订单金额
        <span class="item-note">
          ￥{{purchaseDetail.payment/100 | currency:""}}
        </span>
      </li>
      <li class="item">
        订单状态
        <span class="item-note">
          {{purchaseDetail.status}}
        </span>
      </li>
      <li class="item">
        商品种数
        <span class="item-note">
          {{purchaseDetail.items.length}}
        </span>
      </li>

      <li class='item item-icon-right crm-hotel-list' style="padding-right: 0;height: 43px;" >
          <div class="row row-no-padding">
              <div class="col-33 text-center" style=" font-weight: bolder;">
                  <p>商品名称</p>
              </div>
              <div class="col-33 text-center" style=" font-weight: bolder;">
                  <p>商品数量</p>
              </div>
              <div class="col-33 text-center" style="font-weight: bolder;">
                  <p> 商品金额 </p>
              </div>
          </div>
      </li>
      <li class='item item-icon-right crm-hotel-list' style="padding-right: 0;height: 50px;"
          ng-repeat="detail in purchaseDetail.items">
          <div class="row row-no-padding">
            <div class="col-33 text-center">
              <p>{{detail.title}}</p>
            </div>
            <div class="col-33 text-center">
              <p> {{detail.num}} </p>
            </div>
            <div class="col-33 text-center" style="padding-top: 0px;">
              <p> {{detail.payment/100 | currency:""}} </p>
            </div>
          </div>
      </li>
      <li class='item text-center' ng-if="purchaseDetail.data.length==0">
        <p>该酒店没有采购数据</p>
      </li>
    </ul>
  </ion-content>
</ion-view>
